package com.woniuxy.run.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2021-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("run_users")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    @NotNull(message = "用户名不能为空")
    @Length(max = 16,min = 2,message = "用户名应在{min}~{max}之间")
    private String account;

    /**
     * 密码
     */
    @NotNull(message = "密码不能为空")
    @Length(max = 16,min = 5,message = "密码应在{min}~{max}之间")
    private String pwd;

    /**
     * 电话
     */
    private String telphone;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 注册时间
     */
    private Date regtime;

    /**
     * 状态
     */
    private String status;

    /**
     * 邮箱
     */
    private String email;
}
